﻿/***************************************************************
 * Name:      task_manager.h
 * Purpose:   下载任务管理器类定义
 * Author:    杨卓荦 (yzl@bang5.net)
 * Created:   2010-08-29
 * Copyright: 杨卓荦 (http://www.bang5.net)
 * License:
 **************************************************************/

#ifndef CLOUDOWN_TASK_MANAGER_H_
#define CLOUDOWN_TASK_MANAGER_H_
#include "task.h"
class TaskManager {
public:
  TaskManager();
  virtual ~TaskManager();
  void AddTask(Task* const task);
  Task* GetTask(int task_id);
protected:
private:
  std::list<Task*> tasks_;
};
#endif // CLOUDOWN_TASK_MANAGER_H_
